home *** CD-ROM | disk | FTP | other *** search
/ Visual Basic Source Code / Visual Basic Source Code.iso / vbsource / mircme1a / form1.frm (.txt) next >
Encoding:
Visual Basic Form  |  1999-07-29  |  4.8 KB  |  159 lines

  1. VERSION 5.00
  2. Object = "{831FDD16-0C5C-11D2-A9FC-0000F8754DA1}#2.0#0"; "MSCOMCTL.OCX"
  3. Begin VB.Form Form1 
  4.    Caption         =   "mIRC Messenger"
  5.    ClientHeight    =   5640
  6.    ClientLeft      =   165
  7.    ClientTop       =   735
  8.    ClientWidth     =   3165
  9.    LinkTopic       =   "Form1"
  10.    ScaleHeight     =   5640
  11.    ScaleWidth      =   3165
  12.    StartUpPosition =   3  'Windows Default
  13.    Begin VB.Frame Frame1 
  14.       Caption         =   "Frame1"
  15.       Height          =   4845
  16.       Left            =   45
  17.       TabIndex        =   2
  18.       Top             =   390
  19.       Width           =   2895
  20.       Begin MSComctlLib.TreeView tvUsers 
  21.          Height          =   2055
  22.          Left            =   0
  23.          TabIndex        =   3
  24.          Top             =   0
  25.          Width           =   1815
  26.          _ExtentX        =   3201
  27.          _ExtentY        =   3625
  28.          _Version        =   393217
  29.          Indentation     =   51
  30.          Sorted          =   -1  'True
  31.          Style           =   3
  32.          HotTracking     =   -1  'True
  33.          Appearance      =   1
  34.       End
  35.    End
  36.    Begin MSComctlLib.TabStrip TabStrip1 
  37.       Height          =   5355
  38.       Left            =   0
  39.       TabIndex        =   1
  40.       Top             =   0
  41.       Width           =   3135
  42.       _ExtentX        =   5530
  43.       _ExtentY        =   9446
  44.       TabMinWidth     =   2
  45.       _Version        =   393216
  46.       BeginProperty Tabs {1EFB6598-857C-11D1-B16A-00C0F0283628} 
  47.          NumTabs         =   2
  48.          BeginProperty Tab1 {1EFB659A-857C-11D1-B16A-00C0F0283628} 
  49.             Caption         =   "Online"
  50.             ImageVarType    =   2
  51.          EndProperty
  52.          BeginProperty Tab2 {1EFB659A-857C-11D1-B16A-00C0F0283628} 
  53.             Caption         =   "Setup"
  54.             ImageVarType    =   2
  55.          EndProperty
  56.       EndProperty
  57.    End
  58.    Begin MSComctlLib.StatusBar StatusBar1 
  59.       Align           =   2  'Align Bottom
  60.       Height          =   300
  61.       Left            =   0
  62.       TabIndex        =   0
  63.       Top             =   5340
  64.       Width           =   3165
  65.       _ExtentX        =   5583
  66.       _ExtentY        =   529
  67.       _Version        =   393216
  68.       BeginProperty Panels {8E3867A5-8586-11D1-B16A-00C0F0283628} 
  69.          NumPanels       =   1
  70.          BeginProperty Panel1 {8E3867AB-8586-11D1-B16A-00C0F0283628} 
  71.             AutoSize        =   1
  72.             Object.Width           =   5080
  73.          EndProperty
  74.       EndProperty
  75.    End
  76.    Begin VB.Menu mnuFile 
  77.       Caption         =   "&File"
  78.    End
  79.    Begin VB.Menu mnuEdit 
  80.       Caption         =   "&Edit"
  81.       Begin VB.Menu mnuEditFolder 
  82.          Caption         =   "Add Fol&der"
  83.       End
  84.       Begin VB.Menu mnuEditFriend 
  85.          Caption         =   "Add &Friend"
  86.       End
  87.    End
  88. Attribute VB_Name = "Form1"
  89. Attribute VB_GlobalNameSpace = False
  90. Attribute VB_Creatable = False
  91. Attribute VB_PredeclaredId = True
  92. Attribute VB_Exposed = False
  93. Option Explicit
  94. Dim curAddFolder%, curAddFriend%
  95. Private Sub Form_Load()
  96.     myLoad ("Users")
  97. End Sub
  98. Private Sub Form_Resize()
  99.     ResizeControls
  100. End Sub
  101. Private Sub myLoad(what)
  102.     If what = "Users" Then
  103.         Dim temp, temp1$, temp2$, counter1%, counter2%
  104.         counter1 = 0
  105.         Do
  106.             counter1 = counter1 + 1
  107.             temp1 = GetSetting(AppName, "Folders", counter1)
  108.             If temp1 <> "" Then
  109.                 temp = tvUsers.Nodes.Add(, , counter1, temp1)
  110.                 counter2 = 0
  111.                 Do
  112.                     counter2 = counter2 + 1
  113.                     temp2 = GetSetting(AppName, temp1, counter2)
  114.                     If temp2 <> "" Then
  115.                         temp = tvUsers.Nodes.Add(counter1, tvwChild, counter2, temp2)
  116.                     End If
  117.                 Loop While temp2 <> ""
  118.             End If
  119.         Loop While temp1 <> ""
  120.     End If
  121. End Sub
  122. Private Sub mySave(what)
  123. End Sub
  124. Sub ResizeControls()
  125.     With Frame1
  126.         If Me.Height >= 1455 Then
  127.             .Height = Me.Height - 1455
  128.         End If
  129.         If Me.Width >= 245 Then
  130.             .Width = Me.Width - 245
  131.         End If
  132.     End With
  133.     With TabStrip1
  134.         If Me.Height >= 975 Then
  135.             .Height = Me.Height - 975
  136.         End If
  137.         If Me.Width >= 120 Then
  138.             .Width = Me.Width - 120
  139.         End If
  140.     End With
  141.     With tvUsers
  142.         If Me.Height >= 1455 Then
  143.             .Height = Me.Height - 1455
  144.         End If
  145.         If Me.Width >= 245 Then
  146.             .Width = Me.Width - 245
  147.         End If
  148.     End With
  149. End Sub
  150. Private Sub mnuEditFolder_Click()
  151. End Sub
  152. Private Sub mnuEditFriend_Click()
  153. End Sub
  154. Private Sub tvUsers_MouseDown(Button As Integer, Shift As Integer, x As Single, y As Single)
  155.     If Button = 2 Then
  156.         PopupMenu mnuEdit
  157.     End If
  158. End Sub
  159.